package cn.dubito.miaosha.redis;

/**
 * @author liliang
 * @description:
 * @date 2018/4/13.
 */
public class AccessKey extends BasePrefix {

    /**
     * 五秒钟
     */
    public static final int HIT_SECOND = 5;
    public static final String HIT_SECOND_COUNT = "hit_count";

    public AccessKey(int expireSeconds, String prefix) {
        super(expireSeconds, prefix);
    }

    public static AccessKey withExpire(int expire) {
        return new AccessKey(expire, HIT_SECOND_COUNT);
    }
}
